﻿using System;
using System.Runtime.CompilerServices;

namespace Quicklight.Mobile.Cordova.Storage {

   [IgnoreNamespace]
   public class SQLError {
      [ScriptName("UNKNOWN_ERR")]
      public const double UNKNOWN_ERR = 0;
      [ScriptName("DATABASE_ERR")]
      public const double DATABASE_ERR = 1;
      [ScriptName("VERSION_ERR")]
      public const double VERSION_ERR = 2;
      [ScriptName("TOO_LARGE_ERR")]
      public const double TOO_LARGE_ERR = 3;
      [ScriptName("QUOTA_ERR")]
      public const double QUOTA_ERR = 4;
      [ScriptName("SYNTAX_ERR")]
      public const double SYNTAX_ERR = 5;
      [ScriptName("CONSTRAINT_ERR")]
      public const double CONSTRAINT_ERR = 6;
      [ScriptName("TIMEOUT_ERR")]
      public const double TIMEOUT_ERR = 7;

      [ScriptName("code")]
      public double Code;
      [ScriptName("message")]
      public string Message;
   }

}
